package com.yun.blog.bean.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : simple
 * @title : GiteeOauthResponse
 * @projectName : dantouBlog-back
 * @description : gitee 授权的时候返回的响应
 * @email : yun_simple@163.com
 * @date : 2023/6/5下午10:39
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OauthResponse {

    @JSONField(name="access_token")
    private String accessToken;

    /** gitee 登录不使用 openid **/
    @JSONField(name="openid")
    private String openid;

    @JSONField(name="token_type")
    private String tokenType;

    @JSONField(name="expires_in")
    private Long expiresIn;

    @JSONField(name="refresh_token")
    private String refreshToken;

    @JSONField(name="scope")
    private String scope;

    @JSONField(name="error")
    private String error;

    @JSONField(name="error_description")
    private String errorDescription;

}
